<%= form.fields_for :stock_loggings do |field| %>
  
  <%= field.hidden_field :stock_logging_category_id, :value => 2 %>
  
  <div class="form-group">
	<%= field.label :drug_id %><br>
	<%= field.collection_select(:drug_id, Drug.all, :id, :name, prompt: true) %>
	<%= link_to feather_icon('circle-plus'), new_drug_path %>
  </div>
  <div class="form-group">
	<%= field.label :inventory_id %><br>
	<%= field.collection_select(:inventory_id, Inventory.all, :id, :name, prompt: true) %>
	<%= link_to feather_icon('circle-plus'), new_inventory_path %>
  </div>  
  <div class="form-group">
    <%= field.label :quantity %><br>
    <%= field.text_field :quantity %>
  </div>
  
<% end %>
